package com.zyzd.retrofit.base;

import com.uber.autodispose.AutoDisposeConverter;

/**
 * Created by lzy on 2018/7/14 0014.
 * description ${基本契约}
 */
public interface BaseContract {
    interface IView {
        void showProgressBar();

        void hideProgressBar();

        void showToast(String msg);

        void showToast(int msgId);

        /**
         * 绑定生命周期
         */
        <X> AutoDisposeConverter<X> bindAutoDispose();
    }

    interface IPresenter<V extends IView> {
        void attachView(V view);
    }
}
